import os
import sys
import MySQLdb


db = MySQLdb.connect(host="localhost",port=3306,user="root",passwd="",db="mmds")
cursor = db.cursor()

print "\n\nRefreshing the Databases...\n"
cursor.execute("truncate temp1")
cursor.execute("truncate temp2")
cursor.execute("truncate temp3")
cursor.execute("truncate temp4")
cursor.execute("truncate logout")
print "\nAll are Done!\n\n"

db.close()
